package com.xh.jf_blog.mapper;

import com.xh.jf_blog.bean.ArticleTag;

import java.util.List;

public interface ArticleTagMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(ArticleTag record);

    int insertSelective(ArticleTag record);

    ArticleTag selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ArticleTag record);

    int updateByPrimaryKey(ArticleTag record);

    int deleteByArticleId(int articleId);

    int batchInsert(List<ArticleTag> list);

    List<ArticleTag> getAll(ArticleTag articleTag);

    List<ArticleTag> getByArticleId(int articleId);

    List<ArticleTag> getByTageId(int tagId);
}
